package cn.edu.fzu.homemaking.api;

import cn.edu.fzu.homemaking.domain.enums.ServerPriceModeEnum;
import cn.edu.fzu.homemaking.domain.enums.ServerStatusEnum;
import cn.edu.fzu.homemaking.web.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author jiebin
 * @Date 2023/4/25
 */
@FeignClient(name = "company")
public interface CompanyApi {
    
    @GetMapping("/api/company/auth/server/list")
    Result listServer(@RequestParam("companyId") Long companyId, @RequestParam("labelId") Long labelId,
                      @RequestParam("name") String name, @RequestParam("chargeMode") ServerPriceModeEnum chargeMode,
                      @RequestParam("status") ServerStatusEnum status, @RequestParam("pageNum") Integer pageNum,
                      @RequestParam("pageSize") Integer pageSize);

    @GetMapping("/api/company/auth/server/getById")
    Result getById(@RequestParam("id") Long id);
}
